package com.yang.train.common.config;
/**
 * 统一注解，解决前后端交互Long类型精度丢失的问题
 * 存在的问题：小long类型转化为string类型，前端显示正常，提示警告
 */
/*
@Configuration
public class JacksonConfig {
    @Bean
    public ObjectMapper jacksonObjectMapper(Jackson2ObjectMapperBuilder builder) {
        ObjectMapper objectMapper = builder.createXmlMapper(false).build();
        SimpleModule simpleModule = new SimpleModule();
        simpleModule.addSerializer(Long.class, ToStringSerializer.instance);
        objectMapper.registerModule(simpleModule);
        return objectMapper;
    }
}
*/
